package cn.wdcode.demo.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author wudi
 * @since 2016-12-20
 */
@TableName("sys_user_info")
public class UserInfo extends Model<UserInfo> {

    private static final long serialVersionUID = 1L;

	/**
	 * 账户号 内部系统默认为 100000
	 */
	@TableId(value="ACCOUNT")
	private String account;
	/**
	 * 用户ID
	 */
	@TableField(value="USER_ID")
	private String userId;
	/**
	 * 用户名称
	 */
	@TableField(value="USER_NAM")
	private String userNam;
	/**
	 * 用户密码
	 */
	@TableField(value="USER_PWD")
	private String userPwd;
	/**
	 * 系统ID
	 */
	@TableField(value="SYS_ID")
	private String sysId;
	/**
	 * 创建标识 0为初始化创建 1为用户创建
	 */
	@TableField(value="CREA_SIGN")
	private String creaSign;
	/**
	 * 登录随机数
	 */
	@TableField(value="RANDOM")
	private String random;
	/**
	 * 用户创建日期
	 */
	@TableField(value="USER_DATE")
	private String userDate;
	/**
	 * 
	 */
	@TableField(value="STATE")
	private String state;
	/**
	 * 用户备注信息
	 */
	@TableField(value="DESC_INF")
	private String descInf;
	/**
	 * 电话号码
	 */
	@TableField(value="TEL")
	private String tel;
	/**
	 * 电子邮件
	 */
	@TableField(value="EMAIL")
	private String email;
	/**
	 * 登陆失败次数
	 */
	@TableField(value="LOGIN_FAIL_COUNT")
	private String loginFailCount;
	/**
	 * 最后一次登陆失败时间
	 */
	@TableField(value="CURRENT_LOGIN_TIME")
	private String currentLoginTime;
	/**
	 * 商户姓名
	 */
	@TableField(value="PRESET1")
	private String preset1;
	/**
	 * 最后一次修改密码的时间
	 */
	@TableField(value="LAST_UPPWD_DATE")
	private String lastUppwdDate;
	/**
	 * 用户密码有效期时间
	 */
	@TableField(value="USER_EXPIRED_TIME")
	private String userExpiredTime;
	/**
	 * 
	 */
	@TableField(value="MAILFLG")
	private String mailflg;
	/**
	 * 
	 */
	@TableField(value="PWD_CHANUM")
	private String pwdChanum;
	/**
	 * 
	 */
	@TableField(value="PROVINCE")
	private String province;


	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getUserNam() {
		return userNam;
	}

	public void setUserNam(String userNam) {
		this.userNam = userNam;
	}

	public String getUserPwd() {
		return userPwd;
	}

	public void setUserPwd(String userPwd) {
		this.userPwd = userPwd;
	}

	public String getSysId() {
		return sysId;
	}

	public void setSysId(String sysId) {
		this.sysId = sysId;
	}

	public String getCreaSign() {
		return creaSign;
	}

	public void setCreaSign(String creaSign) {
		this.creaSign = creaSign;
	}

	public String getRandom() {
		return random;
	}

	public void setRandom(String random) {
		this.random = random;
	}

	public String getUserDate() {
		return userDate;
	}

	public void setUserDate(String userDate) {
		this.userDate = userDate;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getDescInf() {
		return descInf;
	}

	public void setDescInf(String descInf) {
		this.descInf = descInf;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getLoginFailCount() {
		return loginFailCount;
	}

	public void setLoginFailCount(String loginFailCount) {
		this.loginFailCount = loginFailCount;
	}

	public String getCurrentLoginTime() {
		return currentLoginTime;
	}

	public void setCurrentLoginTime(String currentLoginTime) {
		this.currentLoginTime = currentLoginTime;
	}

	public String getPreset1() {
		return preset1;
	}

	public void setPreset1(String preset1) {
		this.preset1 = preset1;
	}

	public String getLastUppwdDate() {
		return lastUppwdDate;
	}

	public void setLastUppwdDate(String lastUppwdDate) {
		this.lastUppwdDate = lastUppwdDate;
	}

	public String getUserExpiredTime() {
		return userExpiredTime;
	}

	public void setUserExpiredTime(String userExpiredTime) {
		this.userExpiredTime = userExpiredTime;
	}

	public String getMailflg() {
		return mailflg;
	}

	public void setMailflg(String mailflg) {
		this.mailflg = mailflg;
	}

	public String getPwdChanum() {
		return pwdChanum;
	}

	public void setPwdChanum(String pwdChanum) {
		this.pwdChanum = pwdChanum;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	@Override
	protected Serializable pkVal() {
		return this.account;
	}

}
